An O(n3loglogn/logn) time algorithm for the all-pairs shortest path problem
نویسنده
چکیده
In this paper we consider the all-pairs shortest path (APSP) problem, which computes shortest paths between all pairs of vertices of a directed graph with non-negative real numbers as edge costs. We present an algorithm that computes shortest distances between all pairs of vertices, since shortest paths can be computed as by-products in our algorithm. It is well known that the time complexity of (n, n)-distance matrix multiplication (DMM) is asymptotically equal to that of the APSP problem for a graph with n vertices. Thus we concentrate on DMM in this paper. The computational model in this paper is the conventional RAM, where only arithmetic operations, branching operations, and random accessibility with O(log n) bits are allowed. Fredman [4] was the first to break the cubic complexity of O(n3) under RAM, giving O(n3(log log n/ log n)1/3). This complexity was improved to O(n3(log log n/ log n)1/2) by Takaoka [6] with RAM, and to O(n3/(log n)1/2) by Dobosievicz [3] with extended RAM instructions. Recently there have been some more progresses such as O(n3(log log n)/ log n)5/7) [5] and O(n3(log log n)2/ log n) [9]. In this paper we improve the complexity further to O(n3 log log n/ log n). If edge costs are small integers, the complexity becomes more subcubic, i.e., O(n3− ) for some > 0, as shown in [7], [1], and [11]. We follow the same framework as those in [4], [6], and [9]. That is, we take a two level divide-and-conquer approach. To multiply the small matrices resulting from dividing the original matrices, we sort distance data, and use the ranks of those data in the sorted lists. As the ranks are small integers, the multiplication can be done efficiently by looking at some precomputed tables.
منابع مشابه
All-Pairs Shortest Paths in Unit-Disk Graphs in Slightly Subquadratic Time
In this paper we study the all-pairs shortest paths problem in (unweighted) unit-disk graphs. The previous best solution for this problem required O ( n2 logn ) time, by running the O (n logn)-time single-source shortest path algorithm of Cabello and Jejčič (2015) from every source vertex, where n is the number of vertices. We not only manage to eliminate the logarithmic factor, but also obtain...
متن کاملA note of an O(n3/logn) time algorithm for all pairs shortest paths
We improve the all pairs shortest path algorithm given by Takaoka to time complexity O(n3/ log n). Our improvement is achieved by using a smaller table and therefore saves time for the algorithm.
متن کاملAn O(n log log n/ log n) Time Algorithm for the All-Pairs Shortest Path Problem
We design a faster algorithm for the all-pairs shortest path problem under the conventional RAM model, based on distance matrix multiplication (DMM). Specifically we improve the best known time complexity of O(n(log log n)/ logn) to O(n log log n/ log n). As an application, we show the k-maximum subarray problem can be solved in O(kn log log n/ log n) time for small k.
متن کاملالگوریتم مستطیل آبشاری و ماتریس انتقال در شبکه های کوتاه ترین مسیر بادور
Shortest path problem is among the most interesting problems in the field of graph and network theory. There are many efficient matrix based algorithms for detecting of shortest path and distance between all pairs of this problem in literature. In this paper, a new exact algorithm, named Cascade Rectangle Algorithm, is presented by using main structure of previous exact algorithms and developin...
متن کاملA Shortest Path Algorithm for Real-Weighted Undirected Graphs
We present a new scheme for computing shortest paths on real-weighted undirected graphs in the fundamental comparison-addition model. In an efficient preprocessing phase our algorithm creates a linear-size structure that facilitates single-source shortest path computations in O(m logα) time, where α = α(m,n) is the very slowly growing inverse-Ackermann function, m the number of edges, and n the...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Inf. Process. Lett.
دوره 96 شماره
صفحات -
تاریخ انتشار 2005